package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.BranchInfo;
import com.yyp.dao.BranchInfoDao;
import com.yyp.service.BranchInfoService;

@Service
public class BranchInfoServiceImpl implements BranchInfoService {
	@Resource
	BranchInfoDao branchInfoImpl;

	//
	// public void del(String names) {

	// BranchInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#del(int)
	 */
	public void del(int id) {

		branchInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#find(java.lang.Integer)
	 */
	public BranchInfo find(Integer id) {
		return branchInfoImpl.find(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#find(java.lang.String)
	 */
	public BranchInfo find(String name) {
		return branchInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#findAll()
	 */
	public List<BranchInfo> findAll() {
		return branchInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#save(com.yyp.bean.BranchInfo)
	 */
	public void save(BranchInfo entity) {
		branchInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.BranchInfoService#updata(com.yyp.bean.BranchInfo)
	 */
	public void updata(BranchInfo entity) {
		branchInfoImpl.updata(entity);
	}

}
